from dataclasses import dataclass
from typing import Optional

@dataclass
class Config:
    # LLMWithJina 配置
    llm_with_jina_url: str = "http://47.99.144.80:6662/v1/workflows/run"
    llm_with_jina_api_key: str = "app-qmTXLHjsKvMU9oK3pFShJXPO"

    # LLMWithOutJina 配置
    llm_without_jina_url: str = "http://47.99.144.80:6662/v1/workflows/run"
    llm_without_jina_api_key: str = "app-9LmdG8GlBicLfYJhbqYbHtSi"

    # MySQL 配置
    mysql_url: str = "mysql+pymysql://root:aA%4067028@47.99.144.80:3336/pacong"


    # 百度爬虫配置
    baidu_crawl_interval: int = 3600  # 爬取间隔时间，单位：秒
    baidu_max_crawl_pages: int = 10  # 最大爬取页数

    # ITHome 配置
    ithome_crawl_interval: int = 1800  # 爬取间隔时间，单位：秒
    ithome_max_crawl_pages: int = 5  # 最大爬取页数